﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JT.WEB.Controllers;
using Microsoft.AspNetCore.Mvc;

namespace JT.WEB.Models.Were
{
    public class TbNameClass
    {
        public TbNameClass()
        {
            TbWuPinInfos = new HashSet<TbWuPinInfo>();
        }
        public int Id { get; set; }
        [Display(Name = "物品类名")]
        [Required(ErrorMessage = "不能为空！")]
        [MaxLength(20, ErrorMessage = "名字超出长度！")]
        public string NameClass { get; set; }

        public ICollection<TbWuPinInfo> TbWuPinInfos { get; set; }
    }
}
